package com.ym.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.Index;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Table
@TableComment("域名实名表")
public class DmDomainRealName {

    @IsKey
    @TableId(type = IdType.ASSIGN_ID)
    @Column
    @ColumnComment("主键ID")
    private Long id;

    @Index
    @Column
    @ColumnComment("域名ID")
    private Long domainId;

    @Column
    @ColumnComment("模板ID")
    private Long realNameTemplateId;

    @Column(length = 100)
    @ColumnComment("供应商模板编号")
    private String registrarTemplateId;

    @Column(length = 200)
    @ColumnComment("实名认证失败原因")
    private String realNameFailReason;

    @Column
    @ColumnComment("实名认证时间")
    private LocalDateTime realNameTime;

    @Column(length = 50)
    @ColumnComment("实名认证任务号")
    private String realNameTaskNo;

    @Column
    @ColumnComment("修改时间")
    private LocalDateTime updateTime;

}
